Skip to main content

ARDK for Android/com.nianticlabs.ardk.utils/ImageMath/affineFit

affineFit

[androidJvm]
fun affineFit(source: Size, srcOrientation: Orientation, target: Size, tgtOrientation: Orientation): Matrix

Returns an affine transformation that maps normalized coordinates in the source frame to normalized coordinates in the target frame.

Return​

An affine transformation matrix that fits the source into the target.

Parameters​

androidJvm

sourceThe size of the source container in pixels.
srcOrientationThe orientation of the source container.
targetThe size of the target container in pixels.
tgtOrientationThe orientation of the target container.